<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <table  border="1" style="margin: auto">
        <tr>
            <th>客户编号</th>
            <th>客户姓名</th>
            <th>联系电话</th>
            <th>联系地址</th>
            <th>联系人</th>
            <th>其他信息</th>
            <th>操作</th>
        </tr>
        <tr th:each="customer : ${cuslist}">
            <td th:text="${customer.customerId}"></td>
            <td th:text="${customer.customerName}"></td>
            <td th:text="${customer.phone}"></td>
            <td th:text="${customer.address}"></td>
            <td th:text="${customer.relationman}"></td>
            <td th:text="${customer.otherInfo}"></td>
            <td>
                <form action="cusupdate" method="post">
                    <input type="hidden" name="cusid" th:value="${customer.customerId}"><input
                        type="submit" class="but" value="修改">
                </form>
                <form action="deleteCus" method="post">
                    <input type="hidden" name="cusid" th:value="${customer.customerId}"><input
                        type="submit" class="but" value="删除">
                </form>
            </td>
        </tr>
    </table>

        <form action="cusinsert" method="post">
            <input type="submit" value="增加客户" style="margin-left: 715px">
        </form>

</div>
</body>
</html>